<%@ include file="/taglibs.jsp" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<head>
	<title>北京邮电大学学生党员在线学习中心</title>
	
<script type="text/javascript" src="${ctx}/scripts/jquery-1.7.js"></script>
<script type="text/javascript" src="${ctx}/scripts/jquery-datepicker.js"></script>
<script type="text/javascript" src="${ctx}/scripts/jquery-ui-1.8.16.custom.min.js"></script>
<link href="${ctx}/css/pagination.css" rel="stylesheet" type="text/css" />
<link type="text/css" rel="stylesheet" href="${ctx}/css/jquery-ui-1.8.16.custom.css" />
</head>
<div id="nav_bar">
    <img id="nav_bar_left" src="../../../styles/nav_bar_left.png" alt=""/>
    <div id="welcome_label">欢迎您，&nbsp;<s:property value="#session.session_user.studentName" />!</div>
    <img id="nav_bar_seperator" src="../../../styles/nav_bar_seperator.png" alt=""/>
    <div id="nav_location">
        <img id="nav_bar_point" src="../../../styles/nav_bar_point.png" alt="" />
        <div id="nav_cur_location">当前位置：&nbsp;<a href="${ctx}/MyBranchAction_branchSummary" >支部在线</a>&nbsp;&nbsp;>&nbsp;&nbsp;<span style="color:black;">支部活动</span></div>
    </div>
    <img style="float:right; width:5px;" src="../../../styles/nav_bar_right.png" alt=""/>
    <a id="nav_logout" href="${ctx}/logoutAction">[安全退出]</a>
</div>
<div style="clear:both; height:5px;">&nbsp;</div>
<div style="min-height:450px;">
	<!-- left -->
	<div id="side_menu" style="min-height:630px;">
	    <div id="side_menu_title">
	        <img src="../../../styles/side_menu_title_img.png" alt="" />
	        <span>支部在线</span>
	    </div>
	    <div id="side_menu_title_bottom">&nbsp;</div>
	    <div class="side_sub_menu">
	        <div class="side_menu_point">&nbsp;</div>
	        <a href="${ctx}/MyBranchAction_branchSummary">支部摘要</a>
	    </div>
	    <div class="side_menu_seperator">&nbsp;</div>
	    <div class="side_sub_menu">
	        <div class="side_menu_point">&nbsp;</div>
	        <a href="${ctx}/MyBranchAction_branchNotice">支部公告</a>
	    </div>
	    <div class="side_menu_seperator">&nbsp;</div>
	    <div class="side_sub_menu_focus">
	        <div class="side_menu_point">&nbsp;</div>
	        <a href="${ctx}/MyBranchAction_branchActivity">支部活动</a>
	    </div>
	     <div class="side_menu_seperator">&nbsp;</div>
	    <div class="side_sub_menu">
	        <div class="side_menu_point">&nbsp;</div>
	        <a href="${ctx}/MyBranchAction_branchMember">支部党员学习情况</a>
	    </div>
	</div>
	
	<div id="main_content">
	    <div id="main_content_title">
	        <img src="../../../styles/content_title_img.png" alt="" />
	        <span>支部活动</span>
	    </div>
	    <div class="main_content_title_bottom">&nbsp;</div>

		<form action="${ctx }/MyBranchAction_branchNotice" method="post">
			<table>
				<tr>
					<td style="width: 120px; text-align: center;">请输入查询内容：</td>
					<td><input type="text" name="titleOnQuery" size=60
						value="<s:property value="titleOnQuery"/>"></td>
					<td style="width: 60px; text-align: center;"><input
						type="submit" name="button" id="button" class="input-button"
						value="查询" /></td>
				</tr>
			</table>
			<input type="hidden" name="pageNow" value="1" />
		</form>
		
		<div style="clear: both; height: 10px;"></div>
		
		<ul class="news-list-table" >
			<s:iterator value="branchNewsList">
			<li><s:date name="posterTime" format="yyyy-MM-dd"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="${ctx}/MyBranchAction_viewNews?id=<s:property value="id"/>" target="_blank">
			 <s:if test="%{null!=title && title.length()>40}">
					<s:property value="title.substring(0,40)+'...'" />
			 </s:if> 
			 <s:else>
					<s:property value="title" />
			 </s:else> 
			</a>&nbsp;&nbsp;<span style="color:#404040;">[访问人数：<s:property value="visitedCount"/>]</span></li>
			</s:iterator>
		</ul>	

		<div style="clear: both; height: 10px;"></div>

		<div style="margin-left: 0; text-align: center;">
			<s:property value="paginationCode" escape="false" />
		</div>

	</div>
	<div  style="clear:both">&nbsp;</div>
</div>
